package homework2;

public class Thread2 implements Runnable{
	  public void run()
      {
    	  for(int i=1;i<=50;i++)
    	  {
    		  System.out.println(Thread.currentThread().getName()+i);
    	  }
      }
	  

		public static void main(String[] args) {
			Thread a=new Thread(new Thread2());
			a.setName("new");
			a.start();
			for(int i=1;i<=100;i++)
			{
				System.out.println(Thread.currentThread().getName()+i);
			}

		}

}
